package com.xyht.sca_s.student_manage_system.modules.dormitory.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 宿舍管理表
 * </p>
 *
 * @author XYHT
 * @since 2024-01-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sms_dormitory")
@ApiModel(value="SmsDormitory对象", description="宿舍管理表")
public class SmsDormitory implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "楼栋id")
    private String buildId;

    @ApiModelProperty(value = "楼栋名称")
    private Integer buildName;

    @ApiModelProperty(value = "楼层id")
    private String floorId;

    @ApiModelProperty(value = "楼层名称")
    private Integer floorName;

    @ApiModelProperty(value = "宿舍号")
    private Integer dormitoryNumber;

    @ApiModelProperty(value = "床位数")
    private Integer bedNumber;

    @ApiModelProperty(value = "宿舍类别[1:女寝室2:男寝室]")
    private Integer dormitoryCategory;

    @ApiModelProperty(value = "宿舍类型id")
    private String dormitoryTypeId;

    @ApiModelProperty(value = "创建人")
    private String userId;

    @ApiModelProperty(value = "是否分配寝室归属[0: 未分配 1: 分配]")
    private Integer isBelong;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField (fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "是否删除[0:未删除 1:删除]")
    @TableLogic
    private Integer isDeleted;


}
